Skip to content

Post-merge review of #2408 (template-no-autofocus-attribute)#2496

Merged
NullVoxPopuli merged 6 commits intoember-cli:masterfrom
johanrd:fix/2408
Mar 13, 2026
Merged

Post-merge review of #2408 (template-no-autofocus-attribute)#2496
NullVoxPopuli merged 6 commits intoember-cli:masterfrom
johanrd:fix/2408

Conversation

@johanrd
Copy link
Copy Markdown
Contributor

@johanrd johanrd commented Mar 13, 2026

Missing MustacheStatement visitor. The original handles both ElementNode and MustacheStatement (for {{input autofocus=true}}). The extraction only had ElementNode, so {{input autofocus=true}} and {{component "input" autofocus=true}} silently passed.

Cowritten by claude

johanrd added 6 commits March 12, 2026 23:13
…tofix

- Add GlimmerMustacheStatement visitor for {{input autofocus=true}}
- Change fixable to null (matching original's deliberate design choice)
- Add test cases for mustache form, div, h1, input autofocus="autofocus"
The original isFixable:false was just a documentation tag, not a design
choice. Restore the fixer for element attributes while keeping the new
MustacheStatement handler for {{input autofocus=true}} patterns.
@NullVoxPopuli NullVoxPopuli merged commit c0d65f7 into ember-cli:master Mar 13, 2026
9 checks passed
@johanrd johanrd deleted the fix/2408 branch April 14, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants